#-------------------------------------------------------------------------------
#!	@file Makefile
#!	@brief
#!		guid makefile
#!
#!	$Id: Makefile 185 2013-07-05 21:22:58Z ac.verbeck@gmail.com $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#	Copyright and Disclaimer Notice
#
#	Copyright (c) 2013 A.C. Verbeck
#
#	This file is part of guid
#
#	guid is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	guid is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with SM.  If not, see <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#	Environment
#	To add a mingw console window to the application, add -mconsole to the
#	LDLIBS line, like this:
#
#		LDLIBS		= -lpopt -lsndfile -mwindows -mconsole
#-------------------------------------------------------------------------------
CFLAGS		= -Wall -Werror -ggdb -std=gnu99
LDLIBS		= -lpopt -mwindows -lole32 -mconsole

#-------------------------------------------------------------------------------
#	Targets
#-------------------------------------------------------------------------------
TARGET		= guid

#-------------------------------------------------------------------------------
#	Rules
#-------------------------------------------------------------------------------
.PHONY:	all clean format install

all:		$(TARGET)

clean:;		$(RM) *.o
			$(RM) *.bak
			$(RM) *.exe
			$(RM) *.c.orig
			$(RM) *.h.orig
			$(RM) *.guid

format:;	astyle --style="k&r" --indent=tab --lineend=windows --recursive "*.c"

install:;	cp guid.exe ~/bin

#-------------------------------------------------------------------------------
#	Dependencies
#-------------------------------------------------------------------------------
guid:	guid.c

#
#	End: Makefile
#
